<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>编辑角色</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            padding: 20px;
        }
        .form-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            max-width: 500px;
            margin: 0 auto;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .form-group input[type="submit"] {
            background-color: #007bff;
            color: #fff;
            border: none;
            cursor: pointer;
        }
        .form-group input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>编辑角色</h2>
        <form action="${pageContext.request.contextPath}/acl_role/update" method="post">
            <input type="hidden" name="role_id" value="${aclRole.role_id}">
            <div class="form-group">
                <label for="role_name">角色名称</label>
                <input type="text" id="role_name" name="role_name" value="${aclRole.role_name}" required>
            </div>
            <div class="form-group">
                <label for="remark">角色描述</label>
                <textarea id="remark" name="remark" rows="3" class="form-control">${aclRole.remark}</textarea>
            </div>
            <div class="form-group">
                <label for="is_deleted">状态</label>
                <select id="is_deleted" name="is_deleted" class="form-control">
                    <option value="0" ${aclRole.is_deleted == 0 ? 'selected' : ''}>启用</option>
                    <option value="1" ${aclRole.is_deleted == 1 ? 'selected' : ''}>禁用</option>
                </select>
            </div>
            <div class="form-group">
                <input type="submit" value="保存">
                <button type="button" class="btn btn-default" onclick="window.history.back()">返回</button>
            </div>
        </form>
    </div>
</body>
</html>
